package driver

import (
	"engine/db/driver/mysql"
	"gitee.com/ameise84/e3utils/errors"
	"gorm.io/gorm"
)

func Start(kind string) (*gorm.DB, error) {
	switch kind {
	case "mysql":
		return mysql.Start()
	default:
		return nil, errors.New("db dumper kind error")
	}
}

func Stop(kind string) {
	switch kind {
	case "mysql":
		mysql.Stop()
	default:
	}
}
